<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Create Book</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
        }

        form {
            margin: 50px auto;
            width: 300px;
            padding: 20px;
            background-color: #ffffff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        label {
            display: block;
            margin-bottom: 10px;
            color: #333333;
            font-weight: bold;
        }

        input[type="text"] {
            width: 100%;
            padding: 8px;
            border: 1px solid #dddddd;
            border-radius: 4px;
            box-sizing: border-box;
        }

        input[type="submit"] {
            margin-top: 20px;
            padding: 8px 16px;
            background-color: #4caf50;
            color: #ffffff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        input[type="submit"]:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<form action="/save" method="post">
    <label>Id</label>
    <input type="text" name="id" readonly th:value="${book.id}">
    <label>Title</label>
    <input type="text" name="title" th:value="${book.title}">
    <label>Author</label>
    <input type="text" name="author" th:value="${book.author}">
    <label>Publication Year</label>
    <input type="text" name="publicationYear" th:value="${book.publicationYear}">
    <label>Price</label>
    <input type="text" name="price" th:value="${book.price}">
    <input type="submit" value="更新">
</form>
</body>
</html>